package hr.fer.zemris.OptimizationCriteria;

import hr.fer.zemris.ShopFloor.Job;

import java.util.List;

public class Makespan implements OptimizationCriteria {
	private double max;
	
	public Makespan(List<Job> jobList) {
		this.max = jobList.get(0).getP();
	}
	
	public double eval(double a, double b) {
		
		if(a > max) return a;
		return max;
	}

}
